package com.example.associationmanager.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.associationmanager.bean.People;
import com.example.associationmanager.bean.PeopleAssociationVo;
import com.example.associationmanager.mapper.PeopleMapper;
import com.example.associationmanager.service.PeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.annotation.Resources;
import java.util.ArrayList;
import java.util.List;

@Service
public class PeopleServiceImpl extends ServiceImpl<PeopleMapper, People> implements PeopleService {
    @Resource
    private PeopleMapper peopleMapper;
    @Override
    public List<PeopleAssociationVo> getAllPeopleAssociation(Integer page,Integer limit,Integer status,Integer communityNumber) {
        return peopleMapper.getAllPeopleAssociation(page-1,limit,status,communityNumber);//查询返回社员的信息
    }
}
